using UnityEngine;
using System.Collections;

public class Instantiate : MonoBehaviour {

	// Use this for initialization
	void Start () {
	
	}
	
	// Update is called once per frame
	void Update () {
	
	}
	
	void OnNetworkLoadedLevel()
	{
	/* Instantiate SpaceCraft when network is loaded
	 **/
		Network.Instantiate(SpaceCraft,transform.position,transform.rotation,0);
		
		
		
	}
	
	
	void OnPlayerDisconnected( NetworkPlayer Player)
	{
		Network.RemoveRPCs(Player,0);
		Network.DestroyPlayerObjects(Player);
	}
	
	
	public Transform SpaceCraft;
}
